package com.it;

public class Arr3 {
    public static void main(String[] args) {
        /*int[] arr={1,2,3,4,5};
        //System.out.println(arr[10]);
        System.out.println(arr[2]);*/
        int[] arr={33,5,22,44,55};
        int max=arr[0];
        for (int i = 0; i < arr.length; i++) {
            if (arr[i]>max) {
                max=arr[i];
            }
        }
        System.out.println(max);
    }
}
